<p:document xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:p="http://jboss.org/schema/seam/pdf">


    <p:image alignment="right" wrap="true" value="/jboss.jpg" /> 
    <p:font size="24"><p:paragraph spacingAfter="50">Nested Tables</p:paragraph></p:font>  

    <p:table spacingBefore="25" columns="1">
        <f:facet name="defaultCell">
            <p:cell borderWidthTop="0" />
        </f:facet>

        <p:cell borderWidthTop=".5f" grayFill=".7">
            <p:paragraph alignment="center">Horizontal split using nested tables</p:paragraph>
        </p:cell>

        <p:cell>one</p:cell>
        <p:cell paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
            <p:table widthPercentage="100" columns="2">
                <p:cell borderWidth="0">two</p:cell>
                <p:cell borderWidth="0" borderWidthLeft=".5">three</p:cell>
            </p:table>
        </p:cell>

        <p:cell paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
            <p:table widthPercentage="100" columns="3">
                <f:facet name="defaultCell">
                    <p:cell borderWidth="0" borderWidthLeft=".5" />
                </f:facet>
                <p:cell borderWidthLeft="0">four</p:cell>
                <p:cell>five</p:cell>
                <p:cell>six</p:cell>
            </p:table>
        </p:cell>
        <p:cell>seven</p:cell>
    </p:table>

    <p:table spacingBefore="25" columns="2" headerRows="1">
        <p:cell borderWidthTop=".5f" colspan="2" grayFill=".7">
            <p:paragraph alignment="center">Vertical split using nested tables</p:paragraph>
        </p:cell>
        
        <p:cell borderWidthTop="0">one</p:cell>
        <p:cell borderWidth="0" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
            <p:table widthPercentage="100" columns="1">
                <p:cell borderWidthTop="0">A</p:cell>
                <p:cell borderWidthTop="0">B</p:cell>
            </p:table>
        </p:cell>

        <p:cell borderWidthTop="0">two</p:cell>
        <p:cell borderWidth="0" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0">
            <p:table widthPercentage="100" columns="1">
                <p:cell borderWidthTop="0">C</p:cell>
                <p:cell borderWidthTop="0">D</p:cell>
            </p:table>
        </p:cell>
    </p:table>
</p:document>
